.container {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.title {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

/* 查询表单样式 */
.queryForm {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.formRow {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.formItem {
    flex: 1;
    min-width: 200px;
}

.input, .select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.input:focus, .select:focus {
    border-color: #00bfa5;
    outline: none;
}

.input::placeholder {
    color: #999;
}

.searchButton, .resetButton {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
    margin-right: 10px;
}

.searchButton {
    background-color: #00bfa5;
    color: white;
}

.resetButton {
    background-color: #6c757d;
    color: white;
}

.searchButton:hover {
    background-color: #00a693;
}

.resetButton:hover {
    background-color: #5a6268;
}

/* 表格样式 */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background-color: #fff;
}

.table th,
.table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.table th {
    background-color: #f8f9fa;
    color: #333;
    font-weight: 600;
}

.table tr:hover {
    background-color: #f5f5f5;
}

.operationCell {
    display: flex;
    gap: 8px;
}

.operationButton {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.editButton {
    background-color: #4CAF50;
    color: white;
}

.deleteButton {
    background-color: #f44336;
    color: white;
}

.editButton:hover {
    background-color: #45a049;
}

.deleteButton:hover {
    background-color: #da190b;
}

/* 加载和错误状态样式 */
.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.error {
    background-color: #fff3f3;
    border: 1px solid #ffcdd2;
    border-radius: 4px;
    padding: 15px;
    margin: 10px 0;
}

.empty {
    text-align: center;
    padding: 40px;
    color: #666;
    background-color: #f8f9fa;
    border-radius: 4px;
}

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modalContent {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modalHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modalTitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.closeButton {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.modalForm {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.modalFormItem {
    display: flex;
    flex-direction: column;
}

.modalFormItem label {
    margin-bottom: 5px;
    color: #666;
}

.modalFormItem input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.modalButtons {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.saveButton {
    background-color: #00bfa5;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.cancelButton {
    background-color: #6c757d;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.saveButton:hover {
    background-color: #00a693;
}

.cancelButton:hover {
    background-color: #5a6268;
}

/* 确认对话框样式 */
.confirmModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.confirmContent {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    width: 400px;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.confirmTitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.confirmMessage {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.confirmButtons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.confirmButton {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.confirmYes {
    background-color: #f44336;
    color: white;
}

.confirmYes:hover {
    background-color: #da190b;
}

.confirmNo {
    background-color: #6c757d;
    color: white;
}

.confirmNo:hover {
    background-color: #5a6268;
} 